<?php

  $view = new stdClass();
  $view->name = 'dashboard_departments';
  $view->description = 'Departmental dashboard pages';
  $view->access = array (
);
  $view->view_args_php = '';
  $view->page = TRUE;
  $view->page_title = '';
  $view->page_header = '';
  $view->page_header_format = '1';
  $view->page_footer = '';
  $view->page_footer_format = '1';
  $view->page_empty = '';
  $view->page_empty_format = '1';
  $view->page_type = 'panels_twocol';
  $view->url = 'department';
  $view->use_pager = TRUE;
  $view->nodes_per_page = '6';
  $view->sort = array (
    array (
      'tablename' => 'node',
      'field' => 'created',
      'sortorder' => 'DESC',
      'options' => 'normal',
    ),
    array (
      'tablename' => 'dashboard',
      'field' => 'weight',
      'sortorder' => 'ASC',
      'options' => '',
    ),
  );
  $view->argument = array (
    array (
      'type' => 'taxletter',
      'argdefault' => '1',
      'title' => 'Department: %1',
      'options' => '',
      'wildcard' => '',
      'wildcard_substitution' => '',
    ),
    array (
      'type' => 'rss_feed',
      'argdefault' => '2',
      'title' => 'Indianapolis Museum of Art: Dashboard Department %1',
      'options' => '',
      'wildcard' => '',
      'wildcard_substitution' => '',
    ),
  );
  $view->field = array (
  );
  $view->filter = array (
    array (
      'tablename' => 'node',
      'field' => 'type',
      'operator' => 'OR',
      'options' => '',
      'value' => array (
  0 => 'dashboard_nv',
  1 => 'dashboard_sv',
  2 => 'dashboard_gv',
  3 => 'dashboard_svlrg',
),
    ),
    array (
      'tablename' => 'dashboard',
      'field' => 'next_nid',
      'operator' => '=',
      'options' => '',
      'value' => '0',
    ),
    array (
      'tablename' => 'node',
      'field' => 'distinct',
      'operator' => '=',
      'options' => '',
      'value' => array (
  0 => 'distinct',
),
    ),
    array (
      'tablename' => 'node',
      'field' => 'status',
      'operator' => '=',
      'options' => '',
      'value' => '1',
    ),
  );
  $view->exposed_filter = array (
  );
  $view->requires = array(node, dashboard);
  $views[$view->name] = $view;

include_once './'. drupal_get_path('module', 'views') .'/views_cache.inc';
views_sanitize_view($view);
drupal_execute('views_edit_view', array(), $view);
